package com.say.service.impl;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Service;

import com.say.bean.domain.Share;
import com.say.dao.BaseQueryDao;
import com.say.dao.ShareDao;
import com.say.framework.core.common.service.BaseServiceImpl;
import com.say.service.ShareService;


/**
 * 
 * 类名称：ConfigServiceImpl<br>
 * 类描述：系统参数服务接口实现<br>
 * @version v1.0
 *
 */
@Service("shareService")
public class ShareServiceImpl extends BaseServiceImpl<Share, String> implements ShareService {

    @Autowired
    public ShareDao shareDao;
    
    @Autowired
    public BaseQueryDao baseQueryDao;

    @Override
    public PagingAndSortingRepository<Share, String> getDao() {
        return shareDao;
    }

	@Override
	public Page<Map<String, Object>> findShareByPage(Map<String, Object> params, Pageable initPage) {
		return baseQueryDao.findShareByPage(params, initPage);
	}

	@Override
	public void updateShareStautsByUser(String userId) {
		shareDao.updateShareStautsByUser(userId);
	}

	
   

	
}
